﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace T_Material.Domain
{
    /// <summary>
    /// 物资领用
    /// </summary>
    [Table("Requisition")]
    public class Requisition:Audit
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        public string? Recipient { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks {  get; set; }

        /// <summary>
        /// 领用日期
        /// </summary>
        public DateTime? RequisitionDate { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        public string? UsageDescription { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int? ApprovalStatus { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public string? ApprovedBy { get; set; }

        /// <summary>
        /// 领用物品
        /// </summary>
        public string? CollectingItems { get; set; }

        /// <summary>
        /// 货物名称
        /// </summary>
        public string? GoodsName { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string? TypeName { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string? Specifications { get; set; }

        /// <summary>
        /// 产地国家
        /// </summary>
        public string? Country { get; set; }

        /// <summary>
        /// 产地省
        /// </summary>
        public string? Province { get; set; }

        /// <summary>
        /// 仓库数量
        /// </summary>
        public int WarehouseCount { get; set; }

        /// <summary>
        /// 领用数量
        /// </summary>
        public int ReceivedCount { get; set; }
    }
}
